<?php
class announcements_pickup extends SClass {

 
    public function process() {
     try {
            ServiceUtils::GetFactory()->getAnnouncementService()->pickUpAnnouncement($this->getArgument('id'));
            $this->assign('message', 'ok');
        } catch (ServiceUtils_Exception $exception) {
            $this->assign('message', 'error');
        }
    }


}